package com.info.game;

import com.badlogic.gdx.graphics.g2d.Sprite;
import com.component.game.RenderComponent;
import com.engine.game.GameFabric;
import com.engine.game.GameObject;

public class StartButtonRenderComponent implements RenderComponent{

	private Sprite sprite;
	
	public StartButtonRenderComponent(){
		
        this.sprite = GameFabric.createSprite("images/start_button.png");
		
		this.sprite.setBounds(320 - (this.sprite.getWidth()/2), 300 - (this.sprite.getHeight()/2), this.sprite.getWidth(), this.sprite.getHeight());
		
	}

	@Override
	public void update(GameObject object) {
		
		
	}

	@Override
	public Sprite getSprite() {
		
		return this.sprite;
	}
	
	@Override
	public void dispose() {
		
		this.sprite.getTexture().dispose();
	}

}
